package errorLayer;

import javax.swing.JOptionPane;

public class roomAlreadyInUse extends JOptionPane {
	
	private String rName;
	private String clName;
	
	public roomAlreadyInUse (String roomName, String className) {
		
		this.rName = roomName;
		this.clName = className;
		
		displayMessage();
		
	}
	
	private void displayMessage() {
		
		this.showMessageDialog(getParent(), rName + ", is already being used by " + clName + ".", "ERROR: 101", JOptionPane.OK_OPTION);
		
	}

}
